package com.selfstudy.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.selfstudy.common.annotation.Excel;
import com.selfstudy.common.core.domain.BaseEntity;

/**
 * 预约信息对象 s_order
 * 
 * @author lgf
 * @date 2024-01-30
 */
public class SOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约信息id */
    private Long id;

    /** 学号 */
    @Excel(name = "学号")
    private String username;

    /** 教学楼 */
    @Excel(name = "教学楼")
    private String floorId;
    private String floorName;

    /** 教室id */
    @Excel(name = "教室id")
    private String roomId;

    private String roomName;
    /** 座位坐标 */
    @Excel(name = "座位坐标")
    private String seatXy;

    /** 预约开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 预约结束 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约结束", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;
    /**
     * 0存在1取消
     */
    Integer archived;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setFloorId(String floorId) 
    {
        this.floorId = floorId;
    }

    public String getFloorId() 
    {
        return floorId;
    }
    public void setRoomId(String roomId) 
    {
        this.roomId = roomId;
    }

    public String getRoomId() 
    {
        return roomId;
    }
    public void setSeatXy(String seatXy) 
    {
        this.seatXy = seatXy;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public String getSeatXy()
    {
        return seatXy;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public Integer getArchived() {
        return archived;
    }

    public void setArchived(Integer archived) {
        this.archived = archived;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("floorId", getFloorId())
            .append("roomId", getRoomId())
            .append("seatXy", getSeatXy())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
